package com.flyco.modules.task.util;

import com.flyco.modules.oms.entity.OmsOrder;
import com.flyco.modules.pms.entity.PmsProduct;
import com.flyco.modules.stm.entity.StmStoreInfo;
import com.flyco.modules.task.xml.*;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import org.springframework.stereotype.Component;

/**
 * @Author hui_li
 * @Date 2024/1/25 17:32
 * @Version 1.0
 */
@Component
@Mapper
public interface SapConvert {
    SapConvert INSTANCE = Mappers.getMapper(SapConvert.class);

    SapSupplierInfoXML supplierInfoConvertXml(PmsProduct pmsProduct);

    StmstoreInfoXML storeInfoConvertXml(StmStoreInfo stmStoreInfo);

    SapOrderCreateXML sapOrderCreateConvertXml(OmsOrder omsOrder);

    SapCloseOrderReqXML sapOrderCloseConvertXml(OmsOrder omsOrder);

    SapDistributorDiscountQueryXML sapDiscountQueryConvertXml(OmsOrder omsOrder);

    SapFixedDiscountQueryXML sapFixedDiscountQueryConvertXml(OmsOrder omsOrder);
}
